package hu.bme.mit.inf.expendables.restservices;

import javax.ws.rs.*;
import javax.ws.rs.core.*;

import com.sun.jersey.multipart.FormDataParam;

@Path("/usermanagement")
public interface IUserManagementService {
	
	@GET
	@Path("/viewprofile")
	@Produces(MediaType.TEXT_PLAIN)
	public Response viewProfile(@QueryParam("userid") long userId);
	
	
	@POST
	@Path("/logout")
	@Produces(MediaType.TEXT_PLAIN)
	public Response logout(@FormParam("userid") long userId);
	
	
	@POST
	@Path("/login")
	@Produces(MediaType.TEXT_PLAIN)
	public Response login(@FormParam("username") String userName, @FormParam("password") String password);
	
	
	@POST
	@Path("/registercustomer")
	@Produces(MediaType.TEXT_PLAIN)
	public Response registerCustomer(@FormParam("username") String userName, @FormParam("password") String password, @FormParam("email") String email, @FormParam("birthdate") String birthDate);
	
	
	@POST
	@Path("/registerdeveloper")
	@Produces(MediaType.TEXT_PLAIN)
	public Response registerDeveloper(@FormParam("username") String userName, @FormParam("password") String password, @FormParam("email") String email, @FormParam("birthdate") String birthDate);
	
	
	@POST
	@Path("/registermanager")
	@Produces(MediaType.TEXT_PLAIN)
	public Response registerManager(@FormParam("username") String userName, @FormParam("password") String password, @FormParam("email") String email, @FormParam("birthdate") String birthDate);
	
}
